package com.example.demo.outlook.utils;

/**
 * @author linls
 */
public class UserContext {


    private static final ThreadLocal<Long> t1 = new ThreadLocal<>();


    public static void setUser(Long userId) {

        t1.set(userId);
    }

    public static Long getUser() {

        return t1.get();
    }

    public static void removeUser() {

        t1.remove();
    }
}
